/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author sio
 */
public class Specialite implements Comparable <Specialite> {
    private String nom;
    private Collection <Med> lesMeds = new TreeSet <Med> ();
    
   public Specialite(String nom1){
        nom=nom1;
        
    } 
   public String getNom(){
        return this.nom;
    }
   
   public void addM(Med m ){
       lesMeds.add(m);
   }
    public Collection <Med> getLesMeds(){
        return lesMeds;
    }
   

    @Override
    public int compareTo(Specialite o) {
         return nom.compareTo(o.nom);
    }
   
}
